package com.yc.entities;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 血糖方案记录表
 * </p>
 *
 * @author kuakha
 * @since 2021-04-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="BloodSugarGluceProgram对象", description="血糖方案记录表")
public class BloodSugarGluceProgram extends Model<BloodSugarGluceProgram> {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "降糖方案表主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "绑定patient_info表主键id")
    private Integer programGlUserid;

    @ApiModelProperty(value = "测量血糖时间段 0：空腹 1：早餐前 2：早餐后 3：午餐前 4：午餐后 5：晚餐前 6：晚餐后 7：睡前 8：凌晨 9：随机")
    private String programGlAttr;

    @ApiModelProperty(value = "血糖值上限")
    private Double programGlUpvalue;

    @ApiModelProperty(value = "血糖值下限")
    private Double programGlDownvalue;

    @ApiModelProperty(value = "是否选择   0  否   1  是")
    private String programGlOption;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
